#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
int main() {
    char ch = 0;
    scanf("%c", &ch);
    for (int i = 1; i <= 5; i++)
    {
        for (int j = 5; j - i > 0; j--)
        {
            printf(" ");
        }
        for (int k = 1; k <= i; k++)
        {
            printf("%c ", ch);
        }
        printf("\n");
    }
    return 0;
}